/*
  作者: 劳兆城
  描述: 创建 Source 的方法
*/

import SourceVector from 'ol/source/vector'
import SourceTileArcGISRest from 'ol/source/tilearcgisrest'
import SourceXYZ from 'ol/source/xyz'
import SourceImage from 'ol/source/imagestatic'

// 创建 ol.source.Vector
export const createSourceVector = (options) => new SourceVector(options)

// 创建 ol.source.TileArcGISRest
export const createSourceArcgis = (options) => new SourceTileArcGISRest(options)

// 创建 ol.source.XYZ
export const createSourceXYZ = (options) => new SourceXYZ(options)

// 创建 ol.source.ImageStatic
export const createSourceImage = (options) => new SourceImage(options)
